﻿Ext.define('app.prm.task.edit.Edit', {
    extend: 'Ext.window.Window',
    taskId: 0,
    title: '任务详细',
    modal: true,
    maximized: true,
    border: false,
    layout: 'fit',
    autoScroll: true,
    initComponent: function () {
        var me = this;
        this.items = [me.getCenter()];
        me.callParent();
    },
    getCenter: function () {    //中间区域
        var me = this;
        if (!this.centerPanel) {
            this.centerPanel = new Ext.Panel(
			{
			    region: "center",
			    margins: '5 0 0 0',
			    layout: 'form',
			    bodyStyle: 'padding:5px',
			    autoScroll: true,
			    items: [
                    Ext.create('app.prm.task.edit.Basic', { taskId: me.taskId }),
                    Ext.create('app.prm.task.edit.Related', { taskId: me.taskId })
			    ]
			});
        }
        return this.centerPanel;
    }
});